<ui:composition template="../principal.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="principal">
        <h2>Emissões de Relatórios</h2>
        <div id="titulo-inicial">
            <h3>Escolha um tipo de Emissão</h3>
            <h:graphicImage id="separador-conteudo" library="images" name="separador-conteudo.png"/>
            <br/>
        </div>
        <table id="table-opcoes">
            <h:form>
                <tr>
                    <td>
                        <c:if test="#{loginMB.dentista.contaUsuario.tipo == 'AD'}" >  
                            <h:link outcome="../user-master/menuMaster.xhtml">
                                <h:graphicImage library="images" name="icones/inicio2.png"/>
                                <br/>
                                <h:outputText value="Painel"/>
                            </h:link>
                        </c:if>
                        <c:if test="#{loginMB.dentista.contaUsuario.tipo == 'DE'}" >  
                            <h:link outcome="../user-simple/menuDentista.xhtml">
                                <h:graphicImage library="images" name="icones/inicio2.png"/>
                                <br/>
                                <h:outputText value="Início"/>
                            </h:link>  
                        </c:if>

                    </td>
                    <td>
                        <h:link outcome="../paciente/emitirFichaCompleta.xhtml">
                            <h:graphicImage library="images" name="icones/relatorio.png"/>
                            <br/>
                            <h:outputText value="Ficha Completa"/>
                        </h:link>
                    </td>
                    <td>
                        <h:link outcome="../paciente/emitirReceituario.xhtml">
                            <h:graphicImage library="images" name="icones/relatorio.png"/>
                            <br/>
                            <h:outputText value="Receituário"/>
                        </h:link>
                    </td>
                    <td>
                        <h:link outcome="../paciente/emitirAtestado.xhtml">
                            <h:graphicImage library="images" name="icones/relatorio.png"/>
                            <br/>
                            <h:outputText value="Atestado"/>
                        </h:link>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h:link outcome="../paciente/emitirDeclaracao.xhtml">
                            <h:graphicImage library="images" name="icones/relatorio.png"/>
                            <br/>
                            <h:outputText value="Declaração"/>
                        </h:link>
                    </td>
                    <td>
                        <h:link outcome="../paciente/emitirEtiqueta.xhtml">
                            <h:graphicImage library="images" name="icones/relatorio.png"/>
                            <br/>
                            <h:outputText value="Etiquetas"/>
                        </h:link>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </h:form>
        </table>
    </ui:define>
</ui:composition>